//
//  NSString+Extension.h
//  XZ_WeChat
//
//  Created by 郭现壮 on 16/9/27.
//  Copyright © 2016年 gxz. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface NSString (Extension)

- (NSString *)emoji;


+(NSMutableAttributedString *)attributedStringFromString:(NSString *)string withLength:(CGFloat)length withFont:(CGFloat)font withColor:(UIColor *)color;

- (CGSize)sizeWithMaxWidth:(CGFloat)width andFont:(UIFont *)font;

- (NSString *)originName;

+ (NSString *)currentName;

- (NSString *)firstStringSeparatedByString:(NSString *)separeted;

/**
 * 计算文字高度，可以处理计算带行间距的
 */
- (CGSize)boundingRectWithSize:(CGSize)size font:(UIFont*)font  lineSpacing:(CGFloat)lineSpacing;

//把字符串文件大小转换 kb mb 等
+(NSString *) convertFileSize:(long long)size;

+(NSString *)inputTimeStr:(NSString *)timeStr;
@end
